#ifndef __CPPTUTORDOUBLYLINKEDLIST_H__
#define __CPPTUTORDOUBLYLINKEDLIST_H__

class CcppTutorDoublyLinkedList
{
    private:
        struct node
        {
            int data;
            node *next;
            node *prev;
        };
        node *head; // poiinting front
        node *tail; // pointing end of list
        node *n;    // create a new node   
        node *temp;

        //typedef struct node* nodePtr;

    public:
        CcppTutorDoublyLinkedList ();
       ~CcppTutorDoublyLinkedList ();

        void BuildList ();
        void printHeadToTail ();
        void printTailToHead ();
};

#endif //__CPPTUTORDOUBLYLINKEDLIST_H__

